//
//  HZBaseNavigationController.m
//  kongbaoqu
//
//  Created by renren  on 2020/6/19.
//  Copyright © 2020  renren  All rights reserved.
//

#import "BaseNavigationController.h"
#import "AppDelegate.h"
#import <AudioToolbox/AudioToolbox.h>
#import "UIViewController+Extension.h"
@interface BaseNavigationController ()<UINavigationControllerDelegate>
@property (nonatomic, assign)BOOL hasTabbarLine;
@end



@implementation BaseNavigationController


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
//    [self hideTabbarLine];
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.delegate = self;
}

- (BOOL)shouldAutorotate {
    return NO;
}

#pragma mark - UINavigationControllerDelegate
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
    //TODO:是否隐藏navBar
    if (viewController.hideNavigationBar == YES) {
        [self setNavigationBarHidden:YES animated:false];
    }else {
        [self setNavigationBarHidden:NO animated:false];
    }
}


@end
